//
//  BaseRequestCallBack.m
//  NewsReader
//
//  Created by blacksun on 11-2-17.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "BaseRequestCallBack.h"


@implementation BaseRequestCallBack
@synthesize delegate;

- (id) initWithDelegate:(id)aDelegate{
	if (self = [super init]) {
		self.delegate = aDelegate;
		return self;
	}
	return nil;
}

-(void) request:(id)aRequest failedWithStatuCode:(int) aStatuCode andCommand:(int) aCommand{
	[self.delegate request:aRequest failedWithStatuCode:aStatuCode andCommand:aCommand];
}

-(void)dealloc{
	self.delegate = nil;
	[super dealloc];
}

@end
